﻿namespace ContactCenter.Core.DomainModel
{
    public class ContactInfo : ValueObject<ContactInfo>
    {
        protected ContactInfo()
        {
        }
        public ContactInfo(string homePhoneNumber, string workPhoneNumber, string mobilePhoneNumber, string eMail)
        {
            HomePhoneNumber = homePhoneNumber;
            WorkPhoneNumber = workPhoneNumber;
            MobilePhoneNumber = mobilePhoneNumber;
            EMail = eMail;

            RegisterProperty(val => val.HomePhoneNumber);
            RegisterProperty(val => val.WorkPhoneNumber);
            RegisterProperty(val => val.MobilePhoneNumber);
            RegisterProperty(val => val.EMail);
        }
        
        public string HomePhoneNumber { get; private set; }
        public string WorkPhoneNumber { get; private set; }
        public string MobilePhoneNumber { get; private set; }
        public string EMail { get; private set; }
    }
}
